"""
编写一个函数，接受一个整数列表作为参数，返回列表中所有偶数的和。“
test cases =
[1，2，3，4，5],<[-2，-4，6，7],<[0，0，0]，←[],←
[3，5，7]
"""

def sun_num(numbers):
    sum = 0
    for num in numbers:
        if num % 2 == 0:
            sum += num
    return sum
test_cases = [1, 2, 3, 4, 5]
test_cases1 =  [-2, -4, 6, 7]
test_cases2 = [0, 0, 0]
test_cases3 = []
test_cases4 =[3, 5, 7]


print(sun_num(test_cases))
print(sun_num(test_cases1))
print(sun_num(test_cases2))
print(sun_num(test_cases3))
print(sun_num(test_cases4))



